import { createRouter, createWebHistory, RouteRecordRaw } from 'vue-router'
import Home from '../views/home/home.vue'

const routes: Array<RouteRecordRaw> = [
  {
    path: '/',
    name: 'Home',
    component: Home
  },
  {
    path: '/about',
    name: 'About',
    component: () => import(/* webpackChunkName: "about" */ '../views/about/about.vue')
  },
  {
    path: '/login',
    name: 'Login',
    component: ()=> import(/*  webpackChunkName: "login" */'../views/login/login.vue')
  },
  {
    path: '/articles',
    name: 'Articles',
    component: ()=> import(/*  webpackChunkName: "login" */'../views/articles/articles.vue')
  },
  {
    path:'/content',
    name: 'Content',
    component: ()=>import(/*  webpackChunkName:  "content" */'../views/content/content.vue')
  }
]

const router = createRouter({
  history: createWebHistory(process.env.BASE_URL),
  routes
})

export default router
